{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/semrasevi/Documents/7.Projects/Blais/Submitted/CES/log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Feb 2021, 09:51:25

{com}. do "/var/folders/qf/61m331fn17g360fm97pjr12h0000gn/T//SD00383.000000"
{txt}
{com}. **********************************************************
. ** Title: Are voters’ views about proportional outcomes **
. ** shaped by partisan preferences?                                              **
. ** A survey experiment in the context of a real election**                      
. ** By: André Blais, Semra Sevi and Carolina Plescia            **                                                                                      
. ** Purpose:     replication analyses manuscript and sm          **
. ** Data:        PSRM                                                                            **
. ** Date:        February 2020                                                           **
. **********************************************************
. 
. /* This do-file replicates all the analyses that are reported in the manuscript
> and the supplementary materials of "Are voters’ views about proportional outcomes 
>         shaped by partisan preferences? A survey experiment in the context of a real election */
. 
. use "CES2019 Campaign Period Survey Blais module data 2020-01-10.dta"
{txt}( )

{com}. 
. svyset[pweight=cps19_weight_general]

      {txt}pweight:{col 16}{res}cps19_weight_general
          {txt}VCE:{col 16}{res}linearized
  {txt}Single unit:{col 16}{res}missing
     {txt}Strata 1:{col 16}<one>
         SU 1:{col 16}<observations>
        FPC 1:{col 16}<zero>
{p2colreset}{...}

{com}. 
. rename blais_con_1_FPTP_1 con_fptp_1
{res}{txt}
{com}. rename blais_con_2_FPTP_1 con_fptp_2
{res}{txt}
{com}. rename blais_con_3_FPTP_1 con_fptp_3
{res}{txt}
{com}. rename blais_con_1_PR_1 con_pr_1
{res}{txt}
{com}. rename blais_con_2_PR_1 con_pr_2
{res}{txt}
{com}. rename blais_con_3_PR_1 con_pr_3
{res}{txt}
{com}. rename blais_lib_1_FPTP_1 lib_fptp_1
{res}{txt}
{com}. rename blais_lib_2_FPTP_1 lib_fptp_2
{res}{txt}
{com}. rename blais_lib_3_FPTP_1 lib_fptp_3
{res}{txt}
{com}. rename blais_lib_1_PR_1 lib_pr_1
{res}{txt}
{com}. rename blais_lib_2_PR_1 lib_pr_2
{res}{txt}
{com}. rename blais_lib_3_PR_1 lib_pr_3
{res}{txt}
{com}. rename blais_ndp_1_FPTP_1 ndp_fptp_1
{res}{txt}
{com}. rename blais_ndp_2_FPTP_1 ndp_fptp_2
{res}{txt}
{com}. rename blais_ndp_3_FPTP_1 ndp_fptp_3
{res}{txt}
{com}. rename blais_ndp_1_PR_1 ndp_pr_1
{res}{txt}
{com}. rename blais_ndp_2_PR_1 ndp_pr_2
{res}{txt}
{com}. rename blais_ndp_3_PR_1 ndp_pr_3
{res}{txt}
{com}. rename blais_grn_1_FPTP_1 grn_fptp_1
{res}{txt}
{com}. rename blais_grn_2_FPTP_1 grn_fptp_2
{res}{txt}
{com}. rename blais_grn_3_FPTP_1 grn_fptp_3
{res}{txt}
{com}. rename blais_grn_1_PR_1 grn_pr_1
{res}{txt}
{com}. rename blais_grn_2_PR_1 grn_pr_2
{res}{txt}
{com}. rename blais_grn_3_PR_1 grn_pr_3
{res}{txt}
{com}. 
. *Appendix B
. svy: mean con_fptp_1
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       637
{txt}{col 1}Number of PSUs{col 18}= {res}    637{txt}{col 35}Population size{col 51}={res} 608.690081
{txt}{col 35}Design df{col 51}= {res}       636

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}con_fptp_1 {c |}{col 14}{res}{space 2} 6.395396{col 26}{space 2} .1162742{col 37}{space 5} 6.167068{col 51}{space 3} 6.623724
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean con_fptp_2
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       624
{txt}{col 1}Number of PSUs{col 18}= {res}    624{txt}{col 35}Population size{col 51}={res}  632.05786
{txt}{col 35}Design df{col 51}= {res}       623

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}con_fptp_2 {c |}{col 14}{res}{space 2} 2.936089{col 26}{space 2} .1297494{col 37}{space 5}  2.68129{col 51}{space 3} 3.190888
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean con_fptp_3
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       651
{txt}{col 1}Number of PSUs{col 18}= {res}    651{txt}{col 35}Population size{col 51}={res} 636.315663
{txt}{col 35}Design df{col 51}= {res}       650

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}con_fptp_3 {c |}{col 14}{res}{space 2} 2.304232{col 26}{space 2}   .11928{col 37}{space 5} 2.070012{col 51}{space 3} 2.538453
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean con_pr_1
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       650
{txt}{col 1}Number of PSUs{col 18}= {res}    650{txt}{col 35}Population size{col 51}={res} 632.635272
{txt}{col 35}Design df{col 51}= {res}       649

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}con_pr_1 {c |}{col 14}{res}{space 2} 6.837095{col 26}{space 2} .1212154{col 37}{space 5} 6.599074{col 51}{space 3} 7.075117
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean con_pr_2
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       638
{txt}{col 1}Number of PSUs{col 18}= {res}    638{txt}{col 35}Population size{col 51}={res} 643.087822
{txt}{col 35}Design df{col 51}= {res}       637

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}con_pr_2 {c |}{col 14}{res}{space 2} 4.268514{col 26}{space 2} .1371675{col 37}{space 5} 3.999158{col 51}{space 3} 4.537869
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean con_pr_3
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       647
{txt}{col 1}Number of PSUs{col 18}= {res}    647{txt}{col 35}Population size{col 51}={res} 629.887517
{txt}{col 35}Design df{col 51}= {res}       646

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}con_pr_3 {c |}{col 14}{res}{space 2} 3.058334{col 26}{space 2} .1270179{col 37}{space 5} 2.808916{col 51}{space 3} 3.307752
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean lib_fptp_1
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       611
{txt}{col 1}Number of PSUs{col 18}= {res}    611{txt}{col 35}Population size{col 51}={res} 547.469326
{txt}{col 35}Design df{col 51}= {res}       610

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}lib_fptp_1 {c |}{col 14}{res}{space 2}  6.89113{col 26}{space 2} .1225797{col 37}{space 5} 6.650401{col 51}{space 3}  7.13186
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean lib_fptp_2
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       597
{txt}{col 1}Number of PSUs{col 18}= {res}    597{txt}{col 35}Population size{col 51}={res} 562.868643
{txt}{col 35}Design df{col 51}= {res}       596

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}lib_fptp_2 {c |}{col 14}{res}{space 2} 6.390953{col 26}{space 2} .1129628{col 37}{space 5}   6.1691{col 51}{space 3} 6.612807
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean lib_fptp_3
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       627
{txt}{col 1}Number of PSUs{col 18}= {res}    627{txt}{col 35}Population size{col 51}={res}  581.89581
{txt}{col 35}Design df{col 51}= {res}       626

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}lib_fptp_3 {c |}{col 14}{res}{space 2} 3.471902{col 26}{space 2} .1267669{col 37}{space 5} 3.222963{col 51}{space 3} 3.720842
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean lib_pr_1
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       624
{txt}{col 1}Number of PSUs{col 18}= {res}    624{txt}{col 35}Population size{col 51}={res} 575.835934
{txt}{col 35}Design df{col 51}= {res}       623

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}lib_pr_1 {c |}{col 14}{res}{space 2} 6.712324{col 26}{space 2} .1068142{col 37}{space 5} 6.502565{col 51}{space 3} 6.922084
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean lib_pr_2
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       607
{txt}{col 1}Number of PSUs{col 18}= {res}    607{txt}{col 35}Population size{col 51}={res} 543.025712
{txt}{col 35}Design df{col 51}= {res}       606

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}lib_pr_2 {c |}{col 14}{res}{space 2} 4.729735{col 26}{space 2} .1336454{col 37}{space 5} 4.467271{col 51}{space 3} 4.992199
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean lib_pr_3
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       629
{txt}{col 1}Number of PSUs{col 18}= {res}    629{txt}{col 35}Population size{col 51}={res} 579.955166
{txt}{col 35}Design df{col 51}= {res}       628

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}lib_pr_3 {c |}{col 14}{res}{space 2} 3.768549{col 26}{space 2} .1485732{col 37}{space 5} 3.476789{col 51}{space 3}  4.06031
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean ndp_fptp_1
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       302
{txt}{col 1}Number of PSUs{col 18}= {res}    302{txt}{col 35}Population size{col 51}={res}  349.84268
{txt}{col 35}Design df{col 51}= {res}       301

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}ndp_fptp_1 {c |}{col 14}{res}{space 2} 4.093255{col 26}{space 2}  .183053{col 37}{space 5} 3.733029{col 51}{space 3} 4.453481
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean ndp_fptp_2
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       312
{txt}{col 1}Number of PSUs{col 18}= {res}    312{txt}{col 35}Population size{col 51}={res} 351.929325
{txt}{col 35}Design df{col 51}= {res}       311

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}ndp_fptp_2 {c |}{col 14}{res}{space 2} 3.715442{col 26}{space 2} .1777686{col 37}{space 5} 3.365661{col 51}{space 3} 4.065223
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean ndp_fptp_3
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       309
{txt}{col 1}Number of PSUs{col 18}= {res}    309{txt}{col 35}Population size{col 51}={res} 345.341337
{txt}{col 35}Design df{col 51}= {res}       308

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}ndp_fptp_3 {c |}{col 14}{res}{space 2} 3.597505{col 26}{space 2} .1951053{col 37}{space 5} 3.213597{col 51}{space 3} 3.981413
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean ndp_pr_1
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       300
{txt}{col 1}Number of PSUs{col 18}= {res}    300{txt}{col 35}Population size{col 51}={res} 341.173633
{txt}{col 35}Design df{col 51}= {res}       299

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}ndp_pr_1 {c |}{col 14}{res}{space 2} 4.543902{col 26}{space 2} .1755467{col 37}{space 5} 4.198438{col 51}{space 3} 4.889365
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean ndp_pr_2
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       302
{txt}{col 1}Number of PSUs{col 18}= {res}    302{txt}{col 35}Population size{col 51}={res} 329.382085
{txt}{col 35}Design df{col 51}= {res}       301

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}ndp_pr_2 {c |}{col 14}{res}{space 2} 4.352139{col 26}{space 2} .1820632{col 37}{space 5} 3.993861{col 51}{space 3} 4.710417
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean ndp_pr_3
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       293
{txt}{col 1}Number of PSUs{col 18}= {res}    293{txt}{col 35}Population size{col 51}={res} 310.875776
{txt}{col 35}Design df{col 51}= {res}       292

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}ndp_pr_3 {c |}{col 14}{res}{space 2} 3.944084{col 26}{space 2} .1908386{col 37}{space 5}  3.56849{col 51}{space 3} 4.319677
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean grn_fptp_1
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       317
{txt}{col 1}Number of PSUs{col 18}= {res}    317{txt}{col 35}Population size{col 51}={res} 342.853877
{txt}{col 35}Design df{col 51}= {res}       316

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}grn_fptp_1 {c |}{col 14}{res}{space 2} 3.987916{col 26}{space 2} .1869275{col 37}{space 5} 3.620136{col 51}{space 3} 4.355695
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean grn_fptp_2
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       312
{txt}{col 1}Number of PSUs{col 18}= {res}    312{txt}{col 35}Population size{col 51}={res}  342.26011
{txt}{col 35}Design df{col 51}= {res}       311

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}grn_fptp_2 {c |}{col 14}{res}{space 2} 3.702484{col 26}{space 2} .2157632{col 37}{space 5} 3.277943{col 51}{space 3} 4.127024
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean grn_fptp_3
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       340
{txt}{col 1}Number of PSUs{col 18}= {res}    340{txt}{col 35}Population size{col 51}={res} 377.361037
{txt}{col 35}Design df{col 51}= {res}       339

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 2}grn_fptp_3 {c |}{col 14}{res}{space 2} 3.687339{col 26}{space 2} .1947437{col 37}{space 5} 3.304281{col 51}{space 3} 4.070397
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean grn_pr_1
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       311
{txt}{col 1}Number of PSUs{col 18}= {res}    311{txt}{col 35}Population size{col 51}={res} 342.963349
{txt}{col 35}Design df{col 51}= {res}       310

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}grn_pr_1 {c |}{col 14}{res}{space 2} 4.692181{col 26}{space 2} .1969449{col 37}{space 5} 4.304663{col 51}{space 3} 5.079698
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean grn_pr_2
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       326
{txt}{col 1}Number of PSUs{col 18}= {res}    326{txt}{col 35}Population size{col 51}={res} 340.167996
{txt}{col 35}Design df{col 51}= {res}       325

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}grn_pr_2 {c |}{col 14}{res}{space 2} 4.417847{col 26}{space 2} .1886532{col 37}{space 5} 4.046712{col 51}{space 3} 4.788983
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. svy: mean grn_pr_3
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}       317
{txt}{col 1}Number of PSUs{col 18}= {res}    317{txt}{col 35}Population size{col 51}={res} 345.081943
{txt}{col 35}Design df{col 51}= {res}       316

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 14}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 14}{c |}       Mean{col 26}   Std. Err.{col 38}     [95% Con{col 51}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 14}{hline 12}
{space 4}grn_pr_3 {c |}{col 14}{res}{space 2} 4.388171{col 26}{space 2} .2032551{col 37}{space 5} 3.988267{col 51}{space 3} 4.788075
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 14}{hline 12}

{com}. 
. *, format(%11.3g) cell count  
. 
. *Table 1
. gen more_votes_fptp = con_fptp_1 if !missing(con_fptp_1)
{txt}(2,281 missing values generated)

{com}. replace more_votes_fptp = lib_fptp_1 if !missing(lib_fptp_1)
{txt}(613 real changes made)

{com}. replace more_votes_fptp = ndp_fptp_1 if !missing(ndp_fptp_1)
{txt}(304 real changes made)

{com}. replace more_votes_fptp = grn_fptp_1 if !missing(grn_fptp_1)
{txt}(317 real changes made)

{com}. 
. gen average_vote_fptp = con_fptp_2 if !missing(con_fptp_2)
{txt}(2,294 missing values generated)

{com}. replace average_vote_fptp = lib_fptp_2 if !missing(lib_fptp_2)
{txt}(600 real changes made)

{com}. replace average_vote_fptp = ndp_fptp_2 if !missing(ndp_fptp_2)
{txt}(313 real changes made)

{com}. replace average_vote_fptp = grn_fptp_2 if !missing(grn_fptp_2)
{txt}(312 real changes made)

{com}. 
. gen fewer_votes_fptp = con_fptp_3 if !missing(con_fptp_3)
{txt}(2,267 missing values generated)

{com}. replace fewer_votes_fptp = lib_fptp_3 if !missing(lib_fptp_3)
{txt}(628 real changes made)

{com}. replace fewer_votes_fptp = ndp_fptp_3 if !missing(ndp_fptp_3)
{txt}(310 real changes made)

{com}. replace fewer_votes_fptp = grn_fptp_3 if !missing(grn_fptp_3)
{txt}(340 real changes made)

{com}. 
. gen more_votes_pr = con_pr_1 if !missing(con_pr_1)
{txt}(2,268 missing values generated)

{com}. replace more_votes_pr = lib_pr_1 if !missing(lib_pr_1)
{txt}(625 real changes made)

{com}. replace more_votes_pr = ndp_pr_1 if !missing(ndp_pr_1)
{txt}(301 real changes made)

{com}. replace more_votes_pr = grn_pr_1 if !missing(grn_pr_1)
{txt}(311 real changes made)

{com}. 
. gen average_vote_pr = con_pr_2 if !missing(con_pr_2)
{txt}(2,280 missing values generated)

{com}. replace average_vote_pr = lib_pr_2 if !missing(lib_pr_2)
{txt}(609 real changes made)

{com}. replace average_vote_pr = ndp_pr_2 if !missing(ndp_pr_2)
{txt}(303 real changes made)

{com}. replace average_vote_pr = grn_pr_2 if !missing(grn_pr_2)
{txt}(326 real changes made)

{com}. 
. gen fewer_votes_pr = con_pr_3 if !missing(con_pr_3)
{txt}(2,271 missing values generated)

{com}. replace fewer_votes_pr = lib_pr_3 if !missing(lib_pr_3)
{txt}(632 real changes made)

{com}. replace fewer_votes_pr = ndp_pr_3 if !missing(ndp_pr_3)
{txt}(295 real changes made)

{com}. replace fewer_votes_pr = grn_pr_3 if !missing(grn_pr_3)
{txt}(317 real changes made)

{com}. 
. *reshape the dataset
. gen obs = _n
{txt}
{com}. 
. reshape long con_fptp_ con_pr_ lib_fptp_ lib_pr_ ///
>         ndp_fptp_ ndp_pr_ grn_fptp_ grn_pr_, i(obs) j(votes)
{txt}(note: j = 1 2 3)

Data{col 36}wide{col 43}->{col 48}long
{hline 77}
Number of obs.                 {res}    2918   {txt}->{res}    8754
{txt}Number of variables            {res}     246   {txt}->{res}     231
{txt}j variable (3 values)                     ->   {res}votes
{txt}xij variables:
       {res}con_fptp_1 con_fptp_2 con_fptp_3   {txt}->   {res}con_fptp_
             con_pr_1 con_pr_2 con_pr_3   {txt}->   {res}con_pr_
       lib_fptp_1 lib_fptp_2 lib_fptp_3   {txt}->   {res}lib_fptp_
             lib_pr_1 lib_pr_2 lib_pr_3   {txt}->   {res}lib_pr_
       ndp_fptp_1 ndp_fptp_2 ndp_fptp_3   {txt}->   {res}ndp_fptp_
             ndp_pr_1 ndp_pr_2 ndp_pr_3   {txt}->   {res}ndp_pr_
       grn_fptp_1 grn_fptp_2 grn_fptp_3   {txt}->   {res}grn_fptp_
             grn_pr_1 grn_pr_2 grn_pr_3   {txt}->   {res}grn_pr_
{txt}{hline 77}

{com}. 
. rename con_fptp_ con_0
{res}{txt}
{com}. rename con_pr_ con_1
{res}{txt}
{com}. rename lib_fptp_ lib_0
{res}{txt}
{com}. rename lib_pr_ lib_1
{res}{txt}
{com}. rename ndp_fptp_ ndp_0
{res}{txt}
{com}. rename ndp_pr_ ndp_1
{res}{txt}
{com}. rename grn_fptp_ grn_0
{res}{txt}
{com}. rename grn_pr_  grn_1
{res}{txt}
{com}.         
. reshape long con_ lib_ ndp_ grn_ , i(obs votes) j(PR) 
{txt}(note: j = 0 1)

Data{col 36}wide{col 43}->{col 48}long
{hline 77}
Number of obs.                 {res}    8754   {txt}->{res}   17508
{txt}Number of variables            {res}     231   {txt}->{res}     228
{txt}j variable (2 values)                     ->   {res}PR
{txt}xij variables:
                            {res}con_0 con_1   {txt}->   {res}con_
                            lib_0 lib_1   {txt}->   {res}lib_
                            ndp_0 ndp_1   {txt}->   {res}ndp_
                            grn_0 grn_1   {txt}->   {res}grn_
{txt}{hline 77}

{com}. 
. rename con_ satisfaction_1
{res}{txt}
{com}. rename lib_ satisfaction_0
{res}{txt}
{com}. rename ndp_ satisfaction_2
{res}{txt}
{com}. rename grn_ satisfaction_3
{res}{txt}
{com}. 
. reshape long satisfaction_ , i(obs votes PR) j(party)
{txt}(note: j = 0 1 2 3)

Data{col 36}wide{col 43}->{col 48}long
{hline 77}
Number of obs.                 {res}   17508   {txt}->{res}   70032
{txt}Number of variables            {res}     228   {txt}->{res}     226
{txt}j variable (4 values)                     ->   {res}party
{txt}xij variables:
{res}satisfaction_0 satisfaction_1 ... satisfaction_3{txt}->{res}satisfaction_
{txt}{hline 77}

{com}. 
. rename satisfaction_ satisfaction 
{res}{txt}
{com}. recode votes 1=1 2=0 3=-1
{txt}(votes: 46688 changes made)

{com}. 
. label define votes_lab 1 "More" 0 "Average" -1 "Less"
{txt}
{com}. label define pr_lab 0 "FPTP" 1 "PR"
{txt}
{com}. label define party_lab 0 "Lib" 1 "Con" 2 "Ndp" 3 "Grn"
{txt}
{com}. 
. label values votes votes_lab
{txt}
{com}. label values PR pr_lab
{txt}
{com}. label values party party_lab
{txt}
{com}. 
. *create votes variable
. order satisfaction votes PR party
{txt}
{com}. 
. *Table 1
. svy: mean satisfaction, over(votes) coeflegend
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}    11,283
{txt}{col 1}Number of PSUs{col 18}= {res} 11,283{txt}{col 35}Population size{col 51}={res} 11,292.958
{txt}{col 35}Design df{col 51}= {res}    11,282

         {txt}Less: votes = {res}Less
      {txt}Average: votes = {res}Average
         {txt}More: votes = {res}More

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        Over{col 14}{c |}       Mean{col 26}  Legend
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}satisfaction {txt}{c |}
{space 8}Less {c |}{col 14}{res}{space 2} 3.407853{col 26}{txt}  _b[satisfaction:Less]
{space 5}Average {c |}{col 14}{res}{space 2} 4.346732{col 26}{txt}  _b[satisfaction:Average]
{space 8}More {c |}{col 14}{res}{space 2} 5.830566{col 26}{txt}  _b[satisfaction:More]
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat sd

         {txt}Less: votes = {res}Less
      {txt}Average: votes = {res}Average
         {txt}More: votes = {res}More

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 0}{hline 0}{hline 0}{hline 0}
{col 1}{text}        Over{col 14}{c |}       Mean{col 27}  Std. Dev.
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 0}{hline 0}{hline 0}{hline 0}
{res}satisfaction{txt} {c |}
{space 8}Less {c |}{col 14}{result}{space 2} 3.407853{col 27}{space 2} 2.879993
{txt}{space 5}Average {c |}{col 14}{result}{space 2} 4.346732{col 27}{space 2} 2.906857
{txt}{space 8}More {c |}{col 14}{result}{space 2} 5.830566{col 27}{space 2} 2.833295
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 0}{hline 0}{hline 0}{hline 0}
{res}{txt}
{com}. test _b[satisfaction:Average] = _b[satisfaction:Less]

{txt}Adjusted Wald test

{p 0 7}{space 1}{text:( 1)}{space 1}{space 1}{res}- [satisfaction]Less + [satisfaction]Average = 0{p_end}

{txt}       F(  1, 11282) ={res}  136.78
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. test _b[satisfaction:Average] = _b[satisfaction:More]

{txt}Adjusted Wald test

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[satisfaction]Average - [satisfaction]More = 0{p_end}

{txt}       F(  1, 11282) ={res}  343.21
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. 
. svy: mean satisfaction, over(PR) coeflegend
{txt}(running mean on estimation sample)
{res}
{txt}Survey: Mean estimation

{col 1}Number of strata{col 18}= {res}      1{txt}{col 35}Number of obs{col 51}= {res}    11,283
{txt}{col 1}Number of PSUs{col 18}= {res} 11,283{txt}{col 35}Population size{col 51}={res} 11,292.958
{txt}{col 35}Design df{col 51}= {res}    11,282

         {txt}FPTP: PR = {res}FPTP
           {txt}PR: PR = {res}PR

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        Over{col 14}{c |}       Mean{col 26}  Legend
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}satisfaction {txt}{c |}
{space 8}FPTP {c |}{col 14}{res}{space 2} 4.334112{col 26}{txt}  _b[satisfaction:FPTP]
{space 10}PR {c |}{col 14}{res}{space 2} 4.711769{col 26}{txt}  _b[satisfaction:PR]
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat sd

         {txt}FPTP: PR = {res}FPTP
           {txt}PR: PR = {res}PR

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 0}{hline 0}{hline 0}{hline 0}
{col 1}{text}        Over{col 14}{c |}       Mean{col 27}  Std. Dev.
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 0}{hline 0}{hline 0}{hline 0}
{res}satisfaction{txt} {c |}
{space 8}FPTP {c |}{col 14}{result}{space 2} 4.334112{col 27}{space 2} 3.069328
{txt}{space 10}PR {c |}{col 14}{result}{space 2} 4.711769{col 27}{space 2} 3.001838
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 0}{hline 0}{hline 0}{hline 0}
{res}{txt}
{com}. test _b[satisfaction:FPTP] = _b[satisfaction:PR]

{txt}Adjusted Wald test

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[satisfaction]FPTP - [satisfaction]PR = 0{p_end}

{txt}       F(  1, 11282) ={res}   30.71
{txt}{col 13}Prob > F ={res}    0.0000
{txt}
{com}. 
. gen ndp_grn = party 
{txt}
{com}. recode ndp_grn 0 = 0 1 = 0 2 = 1 3 = 1
{txt}(ndp_grn: 52524 changes made)

{com}. label define ndp_grn_lab 0 "LIB/CON" 1 "NDP/GRN"
{txt}
{com}. label values ndp_grn ndp_grn_lab
{txt}
{com}. 
. 
. *create raw votes variable
. gen raw_votes = .
{txt}(70,032 missing values generated)

{com}. replace raw_votes = 40 if party == 1 & PR == 0 & votes == 1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 34 if party == 1 & PR == 0 & votes == 0
{txt}(2,918 real changes made)

{com}. replace raw_votes = 28 if party == 1 & PR == 0 & votes == -1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 40 if party == 1 & PR == 1 & votes == 1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 34 if party == 1 & PR == 1 & votes == 0
{txt}(2,918 real changes made)

{com}. replace raw_votes = 28 if party == 1 & PR == 1 & votes == -1
{txt}(2,918 real changes made)

{com}. 
. replace raw_votes = 40 if party == 0 & PR == 0 & votes == 1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 34 if party == 0 & PR == 0 & votes == 0
{txt}(2,918 real changes made)

{com}. replace raw_votes = 28 if party == 0 & PR == 0 & votes == -1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 40 if party == 0 & PR == 1 & votes == 1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 34 if party == 0 & PR == 1 & votes == 0
{txt}(2,918 real changes made)

{com}. replace raw_votes = 28 if party == 0 & PR == 1 & votes == -1
{txt}(2,918 real changes made)

{com}. 
. replace raw_votes = 19 if party == 2 & PR == 0 & votes == 1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 13 if party == 2 & PR == 0 & votes == 0
{txt}(2,918 real changes made)

{com}. replace raw_votes = 7  if party == 2 & PR == 0 & votes == -1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 19 if party == 2 & PR == 1 & votes == 1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 13 if party == 2 & PR == 1 & votes == 0
{txt}(2,918 real changes made)

{com}. replace raw_votes = 7  if party == 2 & PR == 1 & votes == -1
{txt}(2,918 real changes made)

{com}. 
. replace raw_votes = 17 if party == 3 & PR == 0 & votes == 1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 11 if party == 3 & PR == 0 & votes == 0
{txt}(2,918 real changes made)

{com}. replace raw_votes = 5  if party == 3 & PR == 0 & votes == -1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 17 if party == 3 & PR == 1 & votes == 1
{txt}(2,918 real changes made)

{com}. replace raw_votes = 11 if party == 3 & PR == 1 & votes == 0
{txt}(2,918 real changes made)

{com}. replace raw_votes = 5  if party == 3 & PR == 1 & votes == -1
{txt}(2,918 real changes made)

{com}. 
. *create plurality variables 
. gen plurality = .
{txt}(70,032 missing values generated)

{com}. replace plurality = 1 if party == 1 & PR == 0 & votes == 1
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 1 & PR == 0 & votes == 0
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 1 & PR == 0 & votes == -1
{txt}(2,918 real changes made)

{com}. replace plurality = 1 if party == 1 & PR == 1 & votes == 1
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 1 & PR == 1 & votes == 0
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 1 & PR == 1 & votes == -1
{txt}(2,918 real changes made)

{com}. 
. replace plurality = 1 if party == 0 & PR == 0 & votes == 1
{txt}(2,918 real changes made)

{com}. replace plurality = 1 if party == 0 & PR == 0 & votes == 0
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 0 & PR == 0 & votes == -1
{txt}(2,918 real changes made)

{com}. replace plurality = 1 if party == 0 & PR == 1 & votes == 1
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 0 & PR == 1 & votes == 0
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 0 & PR == 1 & votes == -1
{txt}(2,918 real changes made)

{com}. 
. replace plurality = 0 if party == 2 & PR == 0 & votes == 1
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 2 & PR == 0 & votes == 0
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 2 & PR == 0 & votes == -1
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 2 & PR == 1 & votes == 1
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 2 & PR == 1 & votes == 0
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 2 & PR == 1 & votes == -1
{txt}(2,918 real changes made)

{com}. 
. replace plurality = 0 if party == 3 & PR == 0 & votes == 1
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 3 & PR == 0 & votes == 0
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 3 & PR == 0 & votes == -1
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 3 & PR == 1 & votes == 1
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 3 & PR == 1 & votes == 0
{txt}(2,918 real changes made)

{com}. replace plurality = 0 if party == 3 & PR == 1 & votes == -1
{txt}(2,918 real changes made)

{com}. 
. 
. *rescale the party ratings 
. gen LP_rating = (cps19_party_rating_23)/100
{txt}(2,304 missing values generated)

{com}. gen CPC_rating = (cps19_party_rating_24)/100
{txt}(2,688 missing values generated)

{com}. gen NDP_rating = (cps19_party_rating_25)/100
{txt}(3,888 missing values generated)

{com}. gen Bloc_rating = (cps19_party_rating_26)/100
{txt}(3,216 missing values generated)

{com}. gen Grn_rating = (cps19_party_rating_27)/100
{txt}(5,184 missing values generated)

{com}. gen PPC_rating = (cps19_party_rating_28)/100
{txt}(5,784 missing values generated)

{com}. 
{txt}end of do-file

{com}. do "/var/folders/qf/61m331fn17g360fm97pjr12h0000gn/T//SD00383.000000"
{txt}
{com}. *reshape to find the highest rating
. rename LP_rating rating0
{res}{txt}
{com}. rename CPC_rating rating1
{res}{txt}
{com}. rename NDP_rating rating2
{res}{txt}
{com}. rename Grn_rating rating3
{res}{txt}
{com}. rename Bloc_rating rating4
{res}{txt}
{com}. rename PPC_rating rating5
{res}{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/qf/61m331fn17g360fm97pjr12h0000gn/T//SD00383.000000"
{txt}
{com}. label define partyrating_lab 0 "Lib" 1 "Con" 2 "Ndp" 3 "Grn" 4 "Bloc" 5 "PPC"
{txt}
{com}. reshape long rating, i(obs votes PR party) j(rating_party)
{txt}(note: j = 0 1 2 3 4 5)

Data{col 36}wide{col 43}->{col 48}long
{hline 77}
Number of obs.                 {res}   70032   {txt}->{res}  420192
{txt}Number of variables            {res}     235   {txt}->{res}     231
{txt}j variable (6 values)                     ->   {res}rating_party
{txt}xij variables:
            {res}rating0 rating1 ... rating5   {txt}->   {res}rating
{txt}{hline 77}

{com}. label values rating_party partyrating_lab 
{txt}
{com}. sort obs votes PR party rating
{txt}
{com}. by obs votes PR party : egen rating_count = count(rating)
{txt}
{com}. by obs votes PR party : gen rating_margin = rating[rating_count] - rating[rating_count -1] 
{txt}(3,888 missing values generated)

{com}. reshape wide rating, i(obs votes PR party) j(rating_party)
{txt}(note: j = 0 1 2 3 4 5)

Data{col 36}long{col 43}->{col 48}wide
{hline 77}
Number of obs.                 {res}  420192   {txt}->{res}   70032
{txt}Number of variables            {res}     233   {txt}->{res}     237
{txt}j variable (6 values)      {res}rating_party   {txt}->   (dropped)
xij variables:
                                 {res}rating   {txt}->   {res}rating0 rating1 ... rating5
{txt}{hline 77}

{com}. drop rating_count
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/qf/61m331fn17g360fm97pjr12h0000gn/T//SD00383.000000"
{txt}
{com}. rename rating0 LP_rating 
{res}{txt}
{com}. rename rating1 CPC_rating 
{res}{txt}
{com}. rename rating2 NDP_rating 
{res}{txt}
{com}. rename rating3 Grn_rating 
{res}{txt}
{com}. rename rating4 Bloc_rating 
{res}{txt}
{com}. rename rating5 PPC_rating 
{res}{txt}
{com}. gen strong_rating = rating_margin >= .15 if !missing(rating_margin)
{txt}(648 missing values generated)

{com}. label define strong_rating_lab 0 "Weak" 1 "Strong"
{txt}
{com}. label values strong_rating strong_rating_lab
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/qf/61m331fn17g360fm97pjr12h0000gn/T//SD00383.000000"
{txt}
{com}. 
. *Table 2 
. *regression
. eststo clear
{txt}
{com}. eststo m1: reg satisfaction raw_votes i.PR i.party [pw=cps19_weight_general], cluster(obs)
{txt}(sum of wgt is 11,292.9579535723)

Linear regression                               Number of obs     = {res}    11,283
                                                {txt}F(5, 2857)        =  {res}   216.25
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1394
                                                {txt}Root MSE          =    {res} 2.8227

{txt}{ralign 78:(Std. Err. adjusted for {res:2,858} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}raw_votes {c |}{col 14}{res}{space 2} .2019501{col 26}{space 2} .0069021{col 37}{space 1}   29.26{col 46}{space 3}0.000{col 54}{space 4} .1884166{col 67}{space 3} .2154837
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .3443786{col 26}{space 2} .0602069{col 37}{space 1}    5.72{col 46}{space 3}0.000{col 54}{space 4} .2263253{col 67}{space 3}  .462432
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-1.031868{col 26}{space 2} .1021335{col 37}{space 1}  -10.10{col 46}{space 3}0.000{col 54}{space 4}-1.232131{col 67}{space 3}-.8316048
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} 2.939724{col 26}{space 2} .2085233{col 37}{space 1}   14.10{col 46}{space 3}0.000{col 54}{space 4} 2.530853{col 67}{space 3} 3.348596
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} 3.483088{col 26}{space 2} .2220522{col 37}{space 1}   15.69{col 46}{space 3}0.000{col 54}{space 4} 3.047689{col 67}{space 3} 3.918486
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-1.714197{col 26}{space 2} .2532628{col 37}{space 1}   -6.77{col 46}{space 3}0.000{col 54}{space 4}-2.210793{col 67}{space 3}  -1.2176
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m2: reg satisfaction raw_votes i.PR i.party plurality [pw=cps19_weight_general], cluster(obs)
{txt}(sum of wgt is 11,292.9579535723)

Linear regression                               Number of obs     = {res}    11,283
                                                {txt}F(6, 2857)        =  {res}   261.16
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1994
                                                {txt}Root MSE          =    {res} 2.7226

{txt}{ralign 78:(Std. Err. adjusted for {res:2,858} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}raw_votes {c |}{col 14}{res}{space 2} .0618076{col 26}{space 2} .0068912{col 37}{space 1}    8.97{col 46}{space 3}0.000{col 54}{space 4} .0482953{col 67}{space 3} .0753198
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .6074612{col 26}{space 2} .0590595{col 37}{space 1}   10.29{col 46}{space 3}0.000{col 54}{space 4} .4916576{col 67}{space 3} .7232648
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-.5811513{col 26}{space 2} .1027282{col 37}{space 1}   -5.66{col 46}{space 3}0.000{col 54}{space 4}-.7825803{col 67}{space 3}-.3797223
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} 1.341036{col 26}{space 2} .1898518{col 37}{space 1}    7.06{col 46}{space 3}0.000{col 54}{space 4}  .968776{col 67}{space 3} 1.713297
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} 1.572856{col 26}{space 2} .1998224{col 37}{space 1}    7.87{col 46}{space 3}0.000{col 54}{space 4} 1.181045{col 67}{space 3} 1.964667
{txt}{space 12} {c |}
{space 3}plurality {c |}{col 14}{res}{space 2} 2.646214{col 26}{space 2} .1041151{col 37}{space 1}   25.42{col 46}{space 3}0.000{col 54}{space 4} 2.442065{col 67}{space 3} 2.850362
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 1.593487{col 26}{space 2} .2258091{col 37}{space 1}    7.06{col 46}{space 3}0.000{col 54}{space 4} 1.150722{col 67}{space 3} 2.036252
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m3: reg satisfaction c.raw_votes##i.PR i.party plurality [pw=cps19_weight_general], cluster(obs) 
{txt}(sum of wgt is 11,292.9579535723)

Linear regression                               Number of obs     = {res}    11,283
                                                {txt}F(7, 2857)        =  {res}   225.37
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1994
                                                {txt}Root MSE          =    {res} 2.7227

{txt}{ralign 80:(Std. Err. adjusted for {res:2,858} clusters in obs)}
{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}  satisfaction{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}raw_votes {c |}{col 16}{res}{space 2} .0633491{col 28}{space 2} .0074785{col 39}{space 1}    8.47{col 48}{space 3}0.000{col 56}{space 4} .0486854{col 69}{space 3} .0780129
{txt}{space 14} {c |}
{space 12}PR {c |}
{space 11}PR  {c |}{col 16}{res}{space 2} .6725421{col 28}{space 2} .1627794{col 39}{space 1}    4.13{col 48}{space 3}0.000{col 56}{space 4} .3533651{col 69}{space 3} .9917192
{txt}{space 14} {c |}
PR#c.raw_votes {c |}
{space 11}PR  {c |}{col 16}{res}{space 2}  -.00253{col 28}{space 2} .0052584{col 39}{space 1}   -0.48{col 48}{space 3}0.630{col 56}{space 4}-.0128406{col 69}{space 3} .0077806
{txt}{space 14} {c |}
{space 9}party {c |}
{space 10}Con  {c |}{col 16}{res}{space 2}-.5820365{col 28}{space 2} .1026898{col 39}{space 1}   -5.67{col 48}{space 3}0.000{col 56}{space 4}  -.78339{col 69}{space 3}-.3806829
{txt}{space 10}Ndp  {c |}{col 16}{res}{space 2} 1.344594{col 28}{space 2} .1898868{col 39}{space 1}    7.08{col 48}{space 3}0.000{col 56}{space 4} .9722653{col 69}{space 3} 1.716923
{txt}{space 10}Grn  {c |}{col 16}{res}{space 2}  1.57683{col 28}{space 2} .1997097{col 39}{space 1}    7.90{col 48}{space 3}0.000{col 56}{space 4}  1.18524{col 69}{space 3} 1.968419
{txt}{space 14} {c |}
{space 5}plurality {c |}{col 16}{res}{space 2} 2.640719{col 28}{space 2} .1040312{col 39}{space 1}   25.38{col 48}{space 3}0.000{col 56}{space 4} 2.436736{col 69}{space 3} 2.844703
{txt}{space 9}_cons {c |}{col 16}{res}{space 2} 1.554383{col 28}{space 2} .2415037{col 39}{space 1}    6.44{col 48}{space 3}0.000{col 56}{space 4} 1.080844{col 69}{space 3} 2.027922
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m4: reg satisfaction raw_votes i.PR##i.party plurality [pw=cps19_weight_general], cluster(obs)
{txt}(sum of wgt is 11,292.9579535723)

Linear regression                               Number of obs     = {res}    11,283
                                                {txt}F(9, 2857)        =  {res}   177.51
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2006
                                                {txt}Root MSE          =    {res} 2.7209

{txt}{ralign 78:(Std. Err. adjusted for {res:2,858} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}raw_votes {c |}{col 14}{res}{space 2} .0662012{col 26}{space 2} .0070674{col 37}{space 1}    9.37{col 46}{space 3}0.000{col 54}{space 4} .0523434{col 67}{space 3}  .080059
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .3305265{col 26}{space 2} .0924356{col 37}{space 1}    3.58{col 46}{space 3}0.000{col 54}{space 4} .1492792{col 67}{space 3} .5117738
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-.8569003{col 26}{space 2} .1143964{col 37}{space 1}   -7.49{col 46}{space 3}0.000{col 54}{space 4}-1.081208{col 67}{space 3}-.6325924
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} 1.316125{col 26}{space 2} .2067168{col 37}{space 1}    6.37{col 46}{space 3}0.000{col 54}{space 4} .9107954{col 67}{space 3} 1.721454
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} 1.449573{col 26}{space 2} .2170586{col 37}{space 1}    6.68{col 46}{space 3}0.000{col 54}{space 4} 1.023966{col 67}{space 3}  1.87518
{txt}{space 12} {c |}
{space 4}PR#party {c |}
{space 5}PR#Con  {c |}{col 14}{res}{space 2} .5208562{col 26}{space 2} .1277267{col 37}{space 1}    4.08{col 46}{space 3}0.000{col 54}{space 4} .2704104{col 67}{space 3} .7713021
{txt}{space 5}PR#Ndp  {c |}{col 14}{res}{space 2} .1456916{col 26}{space 2} .1801803{col 37}{space 1}    0.81{col 46}{space 3}0.419{col 54}{space 4} -.207605{col 67}{space 3} .4989881
{txt}{space 5}PR#Grn  {c |}{col 14}{res}{space 2} .3675719{col 26}{space 2} .1963144{col 37}{space 1}    1.87{col 46}{space 3}0.061{col 54}{space 4}-.0173603{col 67}{space 3} .7525042
{txt}{space 12} {c |}
{space 3}plurality {c |}{col 14}{res}{space 2} 2.563382{col 26}{space 2}  .105112{col 37}{space 1}   24.39{col 46}{space 3}0.000{col 54}{space 4} 2.357279{col 67}{space 3} 2.769485
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 1.624326{col 26}{space 2} .2251708{col 37}{space 1}    7.21{col 46}{space 3}0.000{col 54}{space 4} 1.182812{col 67}{space 3}  2.06584
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/qf/61m331fn17g360fm97pjr12h0000gn/T//SD00383.000000"
{txt}
{com}.         
. *Robustness
. *Appendix C
. eststo clear
{txt}
{com}. eststo m5: reg satisfaction c.votes i.PR i.party [pw=cps19_weight_general], cluster(obs)
{txt}(sum of wgt is 11,292.9579535723)

Linear regression                               Number of obs     = {res}    11,283
                                                {txt}F(5, 2857)        =  {res}   216.25
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1394
                                                {txt}Root MSE          =    {res} 2.8227

{txt}{ralign 78:(Std. Err. adjusted for {res:2,858} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}votes {c |}{col 14}{res}{space 2} 1.211701{col 26}{space 2} .0414125{col 37}{space 1}   29.26{col 46}{space 3}0.000{col 54}{space 4} 1.130499{col 67}{space 3} 1.292902
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .3443786{col 26}{space 2} .0602069{col 37}{space 1}    5.72{col 46}{space 3}0.000{col 54}{space 4} .2263253{col 67}{space 3}  .462432
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-1.031868{col 26}{space 2} .1021335{col 37}{space 1}  -10.10{col 46}{space 3}0.000{col 54}{space 4}-1.232131{col 67}{space 3}-.8316048
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2}-1.301229{col 26}{space 2} .1445739{col 37}{space 1}   -9.00{col 46}{space 3}0.000{col 54}{space 4}-1.584709{col 67}{space 3}-1.017749
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2}-1.161766{col 26}{space 2}  .152795{col 37}{space 1}   -7.60{col 46}{space 3}0.000{col 54}{space 4}-1.461365{col 67}{space 3} -.862166
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} 5.152108{col 26}{space 2} .0741454{col 37}{space 1}   69.49{col 46}{space 3}0.000{col 54}{space 4} 5.006724{col 67}{space 3} 5.297492
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m6: reg satisfaction c.votes i.PR i.party plurality [pw=cps19_weight_general], cluster(obs)
{txt}(sum of wgt is 11,292.9579535723)

Linear regression                               Number of obs     = {res}    11,283
                                                {txt}F(6, 2857)        =  {res}   261.16
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1994
                                                {txt}Root MSE          =    {res} 2.7226

{txt}{ralign 78:(Std. Err. adjusted for {res:2,858} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}votes {c |}{col 14}{res}{space 2} .3708453{col 26}{space 2} .0413473{col 37}{space 1}    8.97{col 46}{space 3}0.000{col 54}{space 4} .2897717{col 67}{space 3}  .451919
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .6074612{col 26}{space 2} .0590595{col 37}{space 1}   10.29{col 46}{space 3}0.000{col 54}{space 4} .4916576{col 67}{space 3} .7232648
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-.5811513{col 26}{space 2} .1027282{col 37}{space 1}   -5.66{col 46}{space 3}0.000{col 54}{space 4}-.7825803{col 67}{space 3}-.3797223
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} .0430777{col 26}{space 2} .1577069{col 37}{space 1}    0.27{col 46}{space 3}0.785{col 54}{space 4} -.266153{col 67}{space 3} .3523085
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} .1512822{col 26}{space 2} .1651634{col 37}{space 1}    0.92{col 46}{space 3}0.360{col 54}{space 4}-.1725693{col 67}{space 3} .4751338
{txt}{space 12} {c |}
{space 3}plurality {c |}{col 14}{res}{space 2} 2.646214{col 26}{space 2} .1041151{col 37}{space 1}   25.42{col 46}{space 3}0.000{col 54}{space 4} 2.442065{col 67}{space 3} 2.850362
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 3.694944{col 26}{space 2} .0974398{col 37}{space 1}   37.92{col 46}{space 3}0.000{col 54}{space 4} 3.503885{col 67}{space 3} 3.886003
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m7: reg satisfaction c.votes##i.PR i.party plurality [pw=cps19_weight_general], cluster(obs) 
{txt}(sum of wgt is 11,292.9579535723)

Linear regression                               Number of obs     = {res}    11,283
                                                {txt}F(7, 2857)        =  {res}   224.77
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1996
                                                {txt}Root MSE          =    {res} 2.7224

{txt}{ralign 78:(Std. Err. adjusted for {res:2,858} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}votes {c |}{col 14}{res}{space 2} .4252798{col 26}{space 2} .0495778{col 37}{space 1}    8.58{col 46}{space 3}0.000{col 54}{space 4} .3280679{col 67}{space 3} .5224918
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .6070448{col 26}{space 2} .0590995{col 37}{space 1}   10.27{col 46}{space 3}0.000{col 54}{space 4} .4911627{col 67}{space 3} .7229269
{txt}{space 12} {c |}
{space 2}PR#c.votes {c |}
{space 9}PR  {c |}{col 14}{res}{space 2}-.1106373{col 26}{space 2} .0594759{col 37}{space 1}   -1.86{col 46}{space 3}0.063{col 54}{space 4}-.2272573{col 67}{space 3} .0059828
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-.5808428{col 26}{space 2} .1027143{col 37}{space 1}   -5.65{col 46}{space 3}0.000{col 54}{space 4}-.7822444{col 67}{space 3}-.3794412
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} .0443441{col 26}{space 2}   .15773{col 37}{space 1}    0.28{col 46}{space 3}0.779{col 54}{space 4}-.2649321{col 67}{space 3} .3536203
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} .1526748{col 26}{space 2} .1651026{col 37}{space 1}    0.92{col 46}{space 3}0.355{col 54}{space 4}-.1710576{col 67}{space 3} .4764071
{txt}{space 12} {c |}
{space 3}plurality {c |}{col 14}{res}{space 2} 2.648304{col 26}{space 2} .1041818{col 37}{space 1}   25.42{col 46}{space 3}0.000{col 54}{space 4} 2.444025{col 67}{space 3} 2.852583
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 3.694598{col 26}{space 2} .0974773{col 37}{space 1}   37.90{col 46}{space 3}0.000{col 54}{space 4} 3.503465{col 67}{space 3} 3.885731
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m8: reg satisfaction votes i.PR##i.party plurality [pw=cps19_weight_general], cluster(obs)
{txt}(sum of wgt is 11,292.9579535723)

Linear regression                               Number of obs     = {res}    11,283
                                                {txt}F(9, 2857)        =  {res}   177.51
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2006
                                                {txt}Root MSE          =    {res} 2.7209

{txt}{ralign 78:(Std. Err. adjusted for {res:2,858} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}votes {c |}{col 14}{res}{space 2} .3972073{col 26}{space 2} .0424046{col 37}{space 1}    9.37{col 46}{space 3}0.000{col 54}{space 4} .3140607{col 67}{space 3}  .480354
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .3305265{col 26}{space 2} .0924356{col 37}{space 1}    3.58{col 46}{space 3}0.000{col 54}{space 4} .1492792{col 67}{space 3} .5117738
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-.8569003{col 26}{space 2} .1143964{col 37}{space 1}   -7.49{col 46}{space 3}0.000{col 54}{space 4}-1.081208{col 67}{space 3}-.6325924
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} -.074101{col 26}{space 2} .1829618{col 37}{space 1}   -0.41{col 46}{space 3}0.686{col 54}{space 4}-.4328515{col 67}{space 3} .2846495
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2}-.0730552{col 26}{space 2} .1958229{col 37}{space 1}   -0.37{col 46}{space 3}0.709{col 54}{space 4}-.4570237{col 67}{space 3} .3109132
{txt}{space 12} {c |}
{space 4}PR#party {c |}
{space 5}PR#Con  {c |}{col 14}{res}{space 2} .5208562{col 26}{space 2} .1277267{col 37}{space 1}    4.08{col 46}{space 3}0.000{col 54}{space 4} .2704104{col 67}{space 3} .7713021
{txt}{space 5}PR#Ndp  {c |}{col 14}{res}{space 2} .1456916{col 26}{space 2} .1801803{col 37}{space 1}    0.81{col 46}{space 3}0.419{col 54}{space 4} -.207605{col 67}{space 3} .4989881
{txt}{space 5}PR#Grn  {c |}{col 14}{res}{space 2} .3675719{col 26}{space 2} .1963144{col 37}{space 1}    1.87{col 46}{space 3}0.061{col 54}{space 4}-.0173603{col 67}{space 3} .7525042
{txt}{space 12} {c |}
{space 3}plurality {c |}{col 14}{res}{space 2} 2.563382{col 26}{space 2}  .105112{col 37}{space 1}   24.39{col 46}{space 3}0.000{col 54}{space 4} 2.357279{col 67}{space 3} 2.769485
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 3.875167{col 26}{space 2} .1021643{col 37}{space 1}   37.93{col 46}{space 3}0.000{col 54}{space 4} 3.674844{col 67}{space 3} 4.075491
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/qf/61m331fn17g360fm97pjr12h0000gn/T//SD00383.000000"
{txt}
{com}. *Appendix D
. eststo clear
{txt}
{com}. eststo m9: reg satisfaction raw_votes i.PR i.party [pw=cps19_weight_general] if strong_rating==1, cluster(obs)
{txt}(sum of wgt is 5,424.54493492842)

Linear regression                               Number of obs     = {res}     5,544
                                                {txt}F(5, 1400)        =  {res}   169.80
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2169
                                                {txt}Root MSE          =    {res}  2.876

{txt}{ralign 78:(Std. Err. adjusted for {res:1,401} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}raw_votes {c |}{col 14}{res}{space 2} .2780994{col 26}{space 2} .0105757{col 37}{space 1}   26.30{col 46}{space 3}0.000{col 54}{space 4} .2573535{col 67}{space 3} .2988452
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .2418128{col 26}{space 2} .0859439{col 37}{space 1}    2.81{col 46}{space 3}0.005{col 54}{space 4} .0732201{col 67}{space 3} .4104055
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-1.148385{col 26}{space 2} .1332184{col 37}{space 1}   -8.62{col 46}{space 3}0.000{col 54}{space 4}-1.409714{col 67}{space 3}-.8870562
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} 4.366826{col 26}{space 2} .3268813{col 37}{space 1}   13.36{col 46}{space 3}0.000{col 54}{space 4} 3.725596{col 67}{space 3} 5.008056
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} 4.710727{col 26}{space 2} .3458609{col 37}{space 1}   13.62{col 46}{space 3}0.000{col 54}{space 4} 4.032266{col 67}{space 3} 5.389189
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-4.445289{col 26}{space 2} .3757078{col 37}{space 1}  -11.83{col 46}{space 3}0.000{col 54}{space 4}  -5.1823{col 67}{space 3}-3.708278
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m10: reg satisfaction raw_votes i.PR i.party plurality [pw=cps19_weight_general] if strong_rating==1, cluster(obs)
{txt}(sum of wgt is 5,424.54493492842)

Linear regression                               Number of obs     = {res}     5,544
                                                {txt}F(6, 1400)        =  {res}   209.53
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2974
                                                {txt}Root MSE          =    {res} 2.7245

{txt}{ralign 78:(Std. Err. adjusted for {res:1,401} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}raw_votes {c |}{col 14}{res}{space 2} .0813751{col 26}{space 2} .0104969{col 37}{space 1}    7.75{col 46}{space 3}0.000{col 54}{space 4} .0607837{col 67}{space 3} .1019665
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .5791765{col 26}{space 2} .0829618{col 37}{space 1}    6.98{col 46}{space 3}0.000{col 54}{space 4} .4164338{col 67}{space 3} .7419193
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-.6015525{col 26}{space 2} .1339869{col 37}{space 1}   -4.49{col 46}{space 3}0.000{col 54}{space 4}-.8643892{col 67}{space 3}-.3387159
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} 1.899156{col 26}{space 2} .3005977{col 37}{space 1}    6.32{col 46}{space 3}0.000{col 54}{space 4} 1.309485{col 67}{space 3} 2.488826
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} 1.808673{col 26}{space 2}  .307964{col 37}{space 1}    5.87{col 46}{space 3}0.000{col 54}{space 4} 1.204552{col 67}{space 3} 2.412794
{txt}{space 12} {c |}
{space 3}plurality {c |}{col 14}{res}{space 2} 3.274845{col 26}{space 2} .1463895{col 37}{space 1}   22.37{col 46}{space 3}0.000{col 54}{space 4} 2.987678{col 67}{space 3} 3.562011
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .450921{col 26}{space 2} .3314088{col 37}{space 1}    1.36{col 46}{space 3}0.174{col 54}{space 4}-.1991905{col 67}{space 3} 1.101032
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m11: reg satisfaction c.raw_votes##i.PR i.party plurality [pw=cps19_weight_general] if strong_rating==1, cluster(obs) 
{txt}(sum of wgt is 5,424.54493492842)

Linear regression                               Number of obs     = {res}     5,544
                                                {txt}F(7, 1400)        =  {res}   179.47
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2978
                                                {txt}Root MSE          =    {res} 2.7239

{txt}{ralign 80:(Std. Err. adjusted for {res:1,401} clusters in obs)}
{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}  satisfaction{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}raw_votes {c |}{col 16}{res}{space 2} .0884035{col 28}{space 2} .0109221{col 39}{space 1}    8.09{col 48}{space 3}0.000{col 56}{space 4} .0669781{col 69}{space 3} .1098289
{txt}{space 14} {c |}
{space 12}PR {c |}
{space 11}PR  {c |}{col 16}{res}{space 2} .9282519{col 28}{space 2} .2607473{col 39}{space 1}    3.56{col 48}{space 3}0.000{col 56}{space 4} .4167544{col 69}{space 3} 1.439749
{txt}{space 14} {c |}
PR#c.raw_votes {c |}
{space 11}PR  {c |}{col 16}{res}{space 2}-.0125338{col 28}{space 2} .0080947{col 39}{space 1}   -1.55{col 48}{space 3}0.122{col 56}{space 4}-.0284129{col 69}{space 3} .0033452
{txt}{space 14} {c |}
{space 9}party {c |}
{space 10}Con  {c |}{col 16}{res}{space 2}-.6039946{col 28}{space 2}  .133864{col 39}{space 1}   -4.51{col 48}{space 3}0.000{col 56}{space 4}-.8665902{col 69}{space 3}-.3413989
{txt}{space 10}Ndp  {c |}{col 16}{res}{space 2} 1.911347{col 28}{space 2} .3002354{col 39}{space 1}    6.37{col 48}{space 3}0.000{col 56}{space 4} 1.322388{col 69}{space 3} 2.500307
{txt}{space 10}Grn  {c |}{col 16}{res}{space 2} 1.822235{col 28}{space 2} .3072795{col 39}{space 1}    5.93{col 48}{space 3}0.000{col 56}{space 4} 1.219457{col 69}{space 3} 2.425013
{txt}{space 14} {c |}
{space 5}plurality {c |}{col 16}{res}{space 2} 3.259441{col 28}{space 2} .1458065{col 39}{space 1}   22.35{col 48}{space 3}0.000{col 56}{space 4} 2.973418{col 69}{space 3} 3.545464
{txt}{space 9}_cons {c |}{col 16}{res}{space 2} .2592269{col 28}{space 2} .3462955{col 39}{space 1}    0.75{col 48}{space 3}0.454{col 56}{space 4} -.420087{col 69}{space 3} .9385408
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m12: reg satisfaction raw_votes i.PR##i.party plurality [pw=cps19_weight_general] if strong_rating==1, cluster(obs)
{txt}(sum of wgt is 5,424.54493492842)

Linear regression                               Number of obs     = {res}     5,544
                                                {txt}F(9, 1400)        =  {res}   140.77
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2999
                                                {txt}Root MSE          =    {res} 2.7203

{txt}{ralign 78:(Std. Err. adjusted for {res:1,401} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}raw_votes {c |}{col 14}{res}{space 2} .0897724{col 26}{space 2} .0107597{col 37}{space 1}    8.34{col 46}{space 3}0.000{col 54}{space 4} .0686655{col 67}{space 3} .1108793
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .0971783{col 26}{space 2} .1387086{col 37}{space 1}    0.70{col 46}{space 3}0.484{col 54}{space 4}-.1749208{col 67}{space 3} .3692773
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-.9787943{col 26}{space 2} .1557236{col 37}{space 1}   -6.29{col 46}{space 3}0.000{col 54}{space 4}-1.284271{col 67}{space 3}-.6733177
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} 1.800201{col 26}{space 2}  .328623{col 37}{space 1}    5.48{col 46}{space 3}0.000{col 54}{space 4} 1.155555{col 67}{space 3} 2.444848
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} 1.474238{col 26}{space 2} .3429431{col 37}{space 1}    4.30{col 46}{space 3}0.000{col 54}{space 4} .8015005{col 67}{space 3} 2.146976
{txt}{space 12} {c |}
{space 4}PR#party {c |}
{space 5}PR#Con  {c |}{col 14}{res}{space 2} .6911757{col 26}{space 2} .1747043{col 37}{space 1}    3.96{col 46}{space 3}0.000{col 54}{space 4} .3484653{col 67}{space 3} 1.033886
{txt}{space 5}PR#Ndp  {c |}{col 14}{res}{space 2} .3885329{col 26}{space 2} .2920956{col 37}{space 1}    1.33{col 46}{space 3}0.184{col 54}{space 4}-.1844593{col 67}{space 3} .9615251
{txt}{space 5}PR#Grn  {c |}{col 14}{res}{space 2} .9159822{col 26}{space 2} .3236586{col 37}{space 1}    2.83{col 46}{space 3}0.005{col 54}{space 4} .2810741{col 67}{space 3}  1.55089
{txt}{space 12} {c |}
{space 3}plurality {c |}{col 14}{res}{space 2} 3.130116{col 26}{space 2} .1479315{col 37}{space 1}   21.16{col 46}{space 3}0.000{col 54}{space 4} 2.839924{col 67}{space 3} 3.420307
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .4844156{col 26}{space 2} .3338375{col 37}{space 1}    1.45{col 46}{space 3}0.147{col 54}{space 4}-.1704599{col 67}{space 3} 1.139291
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/qf/61m331fn17g360fm97pjr12h0000gn/T//SD00383.000000"
{txt}
{com}. 
. eststo clear
{txt}
{com}. eststo m13: reg satisfaction raw_votes i.PR i.party [pw=cps19_weight_general] if strong_rating==0, cluster(obs)
{txt}(sum of wgt is 5,771.33622071147)

Linear regression                               Number of obs     = {res}     5,646
                                                {txt}F(5, 1431)        =  {res}    65.28
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0873
                                                {txt}Root MSE          =    {res} 2.6865

{txt}{ralign 78:(Std. Err. adjusted for {res:1,432} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}raw_votes {c |}{col 14}{res}{space 2}  .131793{col 26}{space 2} .0084306{col 37}{space 1}   15.63{col 46}{space 3}0.000{col 54}{space 4} .1152553{col 67}{space 3} .1483307
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .4204323{col 26}{space 2} .0836675{col 37}{space 1}    5.03{col 46}{space 3}0.000{col 54}{space 4} .2563081{col 67}{space 3} .5845564
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-.7517736{col 26}{space 2} .1527681{col 37}{space 1}   -4.92{col 46}{space 3}0.000{col 54}{space 4}-1.051447{col 67}{space 3}-.4521003
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} 1.506353{col 26}{space 2} .2561207{col 37}{space 1}    5.88{col 46}{space 3}0.000{col 54}{space 4} 1.003941{col 67}{space 3} 2.008766
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} 2.027298{col 26}{space 2} .2714438{col 37}{space 1}    7.47{col 46}{space 3}0.000{col 54}{space 4} 1.494828{col 67}{space 3} 2.559769
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .8220621{col 26}{space 2} .3183189{col 37}{space 1}    2.58{col 46}{space 3}0.010{col 54}{space 4} .1976403{col 67}{space 3} 1.446484
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m14: reg satisfaction raw_votes i.PR i.party plurality [pw=cps19_weight_general] if strong_rating==0, cluster(obs)
{txt}(sum of wgt is 5,771.33622071147)

Linear regression                               Number of obs     = {res}     5,646
                                                {txt}F(6, 1431)        =  {res}    79.30
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1185
                                                {txt}Root MSE          =    {res} 2.6404

{txt}{ralign 78:(Std. Err. adjusted for {res:1,432} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}raw_votes {c |}{col 14}{res}{space 2} .0492573{col 26}{space 2}  .008944{col 37}{space 1}    5.51{col 46}{space 3}0.000{col 54}{space 4} .0317124{col 67}{space 3} .0668021
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .5952944{col 26}{space 2} .0833863{col 37}{space 1}    7.14{col 46}{space 3}0.000{col 54}{space 4} .4317219{col 67}{space 3}  .758867
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-.4469412{col 26}{space 2}  .153838{col 37}{space 1}   -2.91{col 46}{space 3}0.004{col 54}{space 4}-.7487135{col 67}{space 3} -.145169
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2}  .683578{col 26}{space 2} .2417334{col 37}{space 1}    2.83{col 46}{space 3}0.005{col 54}{space 4} .2093881{col 67}{space 3} 1.157768
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} 1.019583{col 26}{space 2}  .256649{col 37}{space 1}    3.97{col 46}{space 3}0.000{col 54}{space 4} .5161343{col 67}{space 3} 1.523031
{txt}{space 12} {c |}
{space 3}plurality {c |}{col 14}{res}{space 2} 1.786674{col 26}{space 2} .1369425{col 37}{space 1}   13.05{col 46}{space 3}0.000{col 54}{space 4} 1.518045{col 67}{space 3} 2.055304
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 2.639172{col 26}{space 2} .3024912{col 37}{space 1}    8.72{col 46}{space 3}0.000{col 54}{space 4} 2.045799{col 67}{space 3} 3.232546
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m15: reg satisfaction c.raw_votes##i.PR i.party plurality [pw=cps19_weight_general] if strong_rating==0, cluster(obs) 
{txt}(sum of wgt is 5,771.33622071147)

Linear regression                               Number of obs     = {res}     5,646
                                                {txt}F(7, 1431)        =  {res}    70.89
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1186
                                                {txt}Root MSE          =    {res} 2.6404

{txt}{ralign 80:(Std. Err. adjusted for {res:1,432} clusters in obs)}
{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}  satisfaction{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}raw_votes {c |}{col 16}{res}{space 2} .0456934{col 28}{space 2} .0101325{col 39}{space 1}    4.51{col 48}{space 3}0.000{col 56}{space 4} .0258172{col 69}{space 3} .0655695
{txt}{space 14} {c |}
{space 12}PR {c |}
{space 11}PR  {c |}{col 16}{res}{space 2} .4631092{col 28}{space 2} .2111124{col 39}{space 1}    2.19{col 48}{space 3}0.028{col 56}{space 4} .0489862{col 69}{space 3} .8772323
{txt}{space 14} {c |}
PR#c.raw_votes {c |}
{space 11}PR  {c |}{col 16}{res}{space 2} .0055724{col 28}{space 2} .0071012{col 39}{space 1}    0.78{col 48}{space 3}0.433{col 56}{space 4}-.0083574{col 69}{space 3} .0195022
{txt}{space 14} {c |}
{space 9}party {c |}
{space 10}Con  {c |}{col 16}{res}{space 2}-.4440015{col 28}{space 2} .1539099{col 39}{space 1}   -2.88{col 48}{space 3}0.004{col 56}{space 4}-.7459148{col 69}{space 3}-.1420883
{txt}{space 10}Ndp  {c |}{col 16}{res}{space 2} .6751597{col 28}{space 2} .2421736{col 39}{space 1}    2.79{col 48}{space 3}0.005{col 56}{space 4} .2001064{col 69}{space 3} 1.150213
{txt}{space 10}Grn  {c |}{col 16}{res}{space 2} 1.009555{col 28}{space 2} .2570765{col 39}{space 1}    3.93{col 48}{space 3}0.000{col 56}{space 4} .5052676{col 69}{space 3} 1.513842
{txt}{space 14} {c |}
{space 5}plurality {c |}{col 16}{res}{space 2} 1.804061{col 28}{space 2} .1375055{col 39}{space 1}   13.12{col 48}{space 3}0.000{col 56}{space 4} 1.534327{col 69}{space 3} 2.073795
{txt}{space 9}_cons {c |}{col 16}{res}{space 2} 2.723307{col 28}{space 2} .3292738{col 39}{space 1}    8.27{col 48}{space 3}0.000{col 56}{space 4} 2.077396{col 69}{space 3} 3.369218
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo m16: reg satisfaction raw_votes i.PR##i.party plurality [pw=cps19_weight_general] if strong_rating==0, cluster(obs)
{txt}(sum of wgt is 5,771.33622071147)

Linear regression                               Number of obs     = {res}     5,646
                                                {txt}F(9, 1431)        =  {res}    55.97
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1194
                                                {txt}Root MSE          =    {res} 2.6397

{txt}{ralign 78:(Std. Err. adjusted for {res:1,432} clusters in obs)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}satisfaction{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}raw_votes {c |}{col 14}{res}{space 2} .0503679{col 26}{space 2} .0091921{col 37}{space 1}    5.48{col 46}{space 3}0.000{col 54}{space 4} .0323364{col 67}{space 3} .0683995
{txt}{space 12} {c |}
{space 10}PR {c |}
{space 9}PR  {c |}{col 14}{res}{space 2} .5212381{col 26}{space 2} .1176922{col 37}{space 1}    4.43{col 46}{space 3}0.000{col 54}{space 4} .2903704{col 67}{space 3} .7521058
{txt}{space 12} {c |}
{space 7}party {c |}
{space 8}Con  {c |}{col 14}{res}{space 2}-.6280049{col 26}{space 2}    .1687{col 37}{space 1}   -3.72{col 46}{space 3}0.000{col 54}{space 4}-.9589307{col 67}{space 3}-.2970792
{txt}{space 8}Ndp  {c |}{col 14}{res}{space 2} .7298552{col 26}{space 2} .2665982{col 37}{space 1}    2.74{col 46}{space 3}0.006{col 54}{space 4}   .20689{col 67}{space 3}  1.25282
{txt}{space 8}Grn  {c |}{col 14}{res}{space 2} 1.041794{col 26}{space 2} .2742326{col 37}{space 1}    3.80{col 46}{space 3}0.000{col 54}{space 4} .5038526{col 67}{space 3} 1.579735
{txt}{space 12} {c |}
{space 4}PR#party {c |}
{space 5}PR#Con  {c |}{col 14}{res}{space 2} .3574976{col 26}{space 2} .1896208{col 37}{space 1}    1.89{col 46}{space 3}0.060{col 54}{space 4} -.014467{col 67}{space 3} .7294621
{txt}{space 5}PR#Ndp  {c |}{col 14}{res}{space 2}-.0692637{col 26}{space 2} .2286766{col 37}{space 1}   -0.30{col 46}{space 3}0.762{col 54}{space 4} -.517841{col 67}{space 3} .3793136
{txt}{space 5}PR#Grn  {c |}{col 14}{res}{space 2}-.0128756{col 26}{space 2} .2455446{col 37}{space 1}   -0.05{col 46}{space 3}0.958{col 54}{space 4}-.4945415{col 67}{space 3} .4687903
{txt}{space 12} {c |}
{space 3}plurality {c |}{col 14}{res}{space 2} 1.765985{col 26}{space 2}  .138788{col 37}{space 1}   12.72{col 46}{space 3}0.000{col 54}{space 4} 1.493736{col 67}{space 3} 2.038235
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 2.648134{col 26}{space 2} .3002193{col 37}{space 1}    8.82{col 46}{space 3}0.000{col 54}{space 4} 2.059217{col 67}{space 3} 3.237051
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/semrasevi/Documents/7.Projects/Blais/Submitted/CES/log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Feb 2021, 09:52:45
{txt}{.-}
{smcl}
{txt}{sf}{ul off}